#!/bin/bash

# os_ver=$(sw_vers -productVersion)
# if [ "$os_ver" == "10.15.7" ]; then
# ln -sfn ~/.config/joshuto/joshuto_$(uname -m) $(brew --prefix)/bin/joshuto
#
# ln -sfn ~/.config/joshuto/fd/fd  $(brew --prefix)/bin/
# ln -sfn ~/.config/joshuto/fd/autocomplete/_fd  $(brew --prefix)/share/zsh/site-functions/
# ln -sfn ~/.config/joshuto/fd/fd.1  $(brew --prefix)/share/man/man1/
#
#
# ln -sfn ~/.config/joshuto/bottom/btm  $(brew --prefix)/bin/
# ln -sfn ~/.config/joshuto/bottom/completion/_btm  $(brew --prefix)/share/zsh/site-functions/
#
# ln -sfn ~/.config/joshuto/bat/bat  $(brew --prefix)/bin/
# ln -sfn ~/.config/joshuto/bat/autocomplete/bat.zsh  $(brew --prefix)/share/zsh/site-functions/
# ln -sfn ~/.config/joshuto/bat/bat.1  $(brew --prefix)/share/man/man1/
#
# ln -sfn ~/.config/joshuto/lsd/lsd  $(brew --prefix)/bin/
# ln -sfn ~/.config/joshuto/lsd/autocomplete/_lsd  $(brew --prefix)/share/zsh/site-functions/
# ln -sfn ~/.config/joshuto/lsd/lsd.1  $(brew --prefix)/share/man/man1/
#
# ln -sfn ~/.config/joshuto/zoxide/zoxide  $(brew --prefix)/bin/
# ln -sfn ~/.config/joshuto/zoxide/completions/_zoxide  $(brew --prefix)/share/zsh/site-functions/
# ln -sfn ~/.config/joshuto/zoxide/man/man1/zoxide.1  $(brew --prefix)/share/man/man1/
# ln -sfn ~/.config/joshuto/zoxide/man/man1/zoxide-remove.1  $(brew --prefix)/share/man/man1/
# ln -sfn ~/.config/joshuto/zoxide/man/man1/zoxide-query.1  $(brew --prefix)/share/man/man1/
# ln -sfn ~/.config/joshuto/zoxide/man/man1/zoxide-add.1  $(brew --prefix)/share/man/man1/
# ln -sfn ~/.config/joshuto/zoxide/man/man1/zoxide-init.1  $(brew --prefix)/share/man/man1/
# ln -sfn ~/.config/joshuto/zoxide/man/man1/zoxide-import.1  $(brew --prefix)/share/man/man1/
# echo 1
# On 10.15.7
# else
#
#
if [[ "$(uname -s)" == "Darwin" ]]; then
	brew install joshuto eza exa zoxide exiftool &
fi

if [[ ("$(uname -s)" == "Linux" && "$(uname -m)" == "x86_64") ]]; then
	sudo apt install exa zoxide exiftool &
fi

# if [[ "$(uname -s)" == "Linux" ]]; then
# 	if [[ "$(uname -m)" == "aarch64" ]]; then
# 		export http_proxy=http://10.211.55.2:7890 https_proxy=http://10.211.55.2:7890 all_proxy=socks5://10.211.55.2:7890
# 		cargo install --locked joshuto
# 	fi
# fi
